package testing;


import static org.junit.Assert.assertEquals;

import org.junit.Before;
import org.junit.Test;

import plagiarism.FileManager;

public class FileManagerTest {
	private FileManager filemanager;
	@Before
	public void setUp() throws Exception {
		// test the file whether is not exist
		
	}
	@Test
	public void test1()
	{
		
		String [] arts = new String[2];
		arts[0] = "a2.jpg";
		arts[1] = "a3.jpg";
		this.filemanager = new FileManager(arts);
		boolean result = filemanager.compare_article();
		assertEquals(result,true);
		
	}
	@Test
	public void test2()
	{
		String [] arts = new String[2];
		arts[0] = "adwqdwqdwqd2.txt";
		arts[1] = "a3.txt";
		this.filemanager = new FileManager(arts);
		boolean result = filemanager.compare_article();
		assertEquals(result,true);
		
	}
}
